package com.yida.common.security.feign;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.Logger;
import feign.Logger.JavaLogger;
import feign.RequestInterceptor;

/**
 * Feign 配置注册
 *
 * @author yida
 **/
@Configuration
public class FeignAutoConfiguration
{   
    
    @Bean
    JavaLogger.Level feignLoggerLevel()
    {
        return Logger.Level.FULL;
    }
    
    @Bean
    public RequestInterceptor requestInterceptor()
    {
        return new FeignRequestInterceptor();
    }
}
